﻿@model Timesheet.Web.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<section id="loginForm">
<h2>Use a local account to log in.</h2>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Log in Form</legend>
        <ol>
            <li>
                @Html.DevExpress().LabelFor(m => m.UserName).GetHtml()
                @Html.DevExpress().TextBoxFor(m => m.UserName).GetHtml()
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.DevExpress().LabelFor(m => m.Password).GetHtml()
                @Html.DevExpress().TextBoxFor(m => m.Password, setting => { setting.Properties.Password = true; }).GetHtml()
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.DevExpress().CheckBoxFor(m => m.RememberMe).GetHtml()
                @Html.DevExpress().LabelFor(m => m.RememberMe, setting => { setting.ControlStyle.CssClass = "checkbox"; }).GetHtml()
            </li>
        </ol>
      @*  @Html.DevExpress().Button(s =>
        {
            s.Name = "btLogin";
            s.UseSubmitBehavior = true; 
        }).GetHtml()
        
         @Html.DevExpress().Button(s =>
        {
            s.Name = "btLogin1";
            s.UseSubmitBehavior = true; 
        }).GetHtml *@
        <input type="submit" name="btLogin" value="Login" />

    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}
</section>


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
